package laboratoryQ.flatness;

import java.awt.Graphics;

public class MultiTransformer implements ICoordinateTransformer {
	private ICoordinateTransformer[] transformers;

	public MultiTransformer(ICoordinateTransformer ... transformers) {
		this.transformers = transformers;
	}

	@Override
	public void transform(
			double[] srcX, 
			double[] srcY, 
			Graphics g
	) {
		for (ICoordinateTransformer t : transformers) {
			t.transform(srcX, srcY, g);
		}
	}
}
